@tailwind base;

@layer base {
  * {
    @apply box-content;
  }
}

* {
	padding: 0;
	margin: 0;
}

ul {
  list-style: none;
}

html,
body {
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: inherit;
}
/* 艺术字 */
@font-face {
  font-family: YouSheBiaoTiHei;
  src: url(./assets/font/YouSheBiaoTiHei.ttf);
}

@mixin art-font($font-size: 14px, $font-color: #fff) {
  font-size: $font-size;
  font-family: YouSheBiaoTiHei;
  color: $font-color;
}

// 地图测量提示
.ol-tooltip {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  opacity: 0.7;
  white-space: nowrap;
  font-size: 12px;
  cursor: default;
  user-select: none;
}

.ol-tooltip-measure {
  opacity: 1;
  font-weight: bold;
}

.ol-tooltip-static {
  background-color: #ffcc33;
  color: black;
  border: 1px solid white;
}

.ol-tooltip-measure:before,
.ol-tooltip-static:before {
  border-top: 6px solid rgba(0, 0, 0, 0.5);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
  position: absolute;
  bottom: -6px;
  margin-left: -7px;
  left: 50%;
}

.ol-tooltip-static:before {
  border-top-color: #ffcc33;
}

@mixin el-button($bgColor: #2a85e7, $bgColorHover: #064384) {
  --el-button-text-color: #fff;
  --el-button-hover-text-color: #fff;
  background: linear-gradient(360deg, $bgColor 0%, $bgColorHover 100%);
  border-radius: 2px;
  border: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;

  &:hover {
    background: linear-gradient(360deg, $bgColorHover 0%, $bgColor 100%);
  }

  &:active {
    background: linear-gradient(360deg, $bgColorHover 0%, $bgColor 100%);
  }
}

body .elBtn.el-button {
  @include el-button(#064384, #2a85e7);
}

body .failBtn.el-button {
  @include el-button(#213450, #3c5375);
}